package com.zbf.weixinwangyeshouqaun;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author: LCG
 * @Date: 2021-12-28 17:16:11
 * @description: 微信公众号-->微信网页授权
 **/

@Controller
@RequestMapping("api")
public class TestWeiXinWangYeShouQuan {

    /** 
     * @author: LCG
     * @date: 2021/12/28
     * @description:  授权回调
     */
    @RequestMapping("shouquan")
    public String shouQuan(@RequestParam("code") String code,@RequestParam("state") String state){

        System.out.println(code+"==========="+state);

        return "auth";
    }

}
